package com.jeesite.modules.rt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 设备分组Entity
 * @author 李寒冰
 * @version 2024-10-23
 */
@Table(name="rt_group", alias="a", label="设备分组信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="user_id", attrName="userId", label="user_id"),
		@Column(name="name", attrName="name", label="分组名称"),
	}, orderBy="a.id"
)
public class RtGroup extends DataEntity<RtGroup> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// user_id
	private String name;		// 分组名称

	public RtGroup() {
		this(null);
	}
	
	public RtGroup(String id){
		super(id);
	}
	
	@Size(min=0, max=50, message="user_id长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Size(min=0, max=255, message="分组名称长度不能超过 255 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}